package cn.seocoo.platform.base.mapper;

import cn.seocoo.platform.base.domain.BaseOperationType;
import cn.seocoo.platform.base.dto.BaseCommonDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 营运类型 数据层
 * 
 * @author wujian
 * @date 2019-12-30
 */
public interface BaseOperationTypeMapper 
{
	/**
     * 查询营运类型信息
     * 
     * @param id 营运类型ID
     * @return 营运类型信息
     */
	public BaseOperationType selectBaseOperationTypeById(Integer id);
	
	/**
     * 查询营运类型列表
     * 
     * @param baseOperationType 营运类型信息
     * @return 营运类型集合
     */
	public List<BaseOperationType> selectBaseOperationTypeList(BaseOperationType baseOperationType);
	
	/**
     * 新增营运类型
     * 
     * @param baseOperationType 营运类型信息
     * @return 结果
     */
	public int insertBaseOperationType(BaseOperationType baseOperationType);
	
	/**
     * 修改营运类型
     * 
     * @param baseOperationType 营运类型信息
     * @return 结果
     */
	public int updateBaseOperationType(BaseOperationType baseOperationType);
	
	/**
     * 删除营运类型
     * 
     * @param id 营运类型ID
     * @return 结果
     */
	public int deleteBaseOperationTypeById(Integer id);
	
	/**
     * 批量删除营运类型
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteBaseOperationTypeByIds(String[] ids);

	List<BaseCommonDto> selectOperationType(@Param(value = "categoryName") String categoryName);
}